import request from '@/utils/request'

// 获取所有资源列表
export const getAllResourceCategory = () => {
  return request({
    method: 'get',
    url: '/boss/resource/category/getAll'
  })
}

// 新建或更新
export const catgoryCreateOrUpdate = (data) => {
  return request({
    method: 'post',
    url: '/boss/resource/category/saveOrderUpdate',
    data
  })
}

// 删除
export const deleteCategory = (id = 0) => {
  return request({
    method: 'delete',
    url: `/boss/resource/category/${id}`
  })
}
